<?php
class Foto extends AppModel {

	var $name = 'Foto';
	var $validate = array(
		'clasificado_id' => array('numeric'),
		'file' => array('rule'=>VALID_NOT_EMPTY,'required'=>true,'message'=>'El archivo no pude estar en blanco'),
		'orden' => array('rule'=>'numeric','required'=>false,'message'=>'Orden debe ser Numerico')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Clasificado' => array('className' => 'Clasificado',
								'foreignKey' => 'clasificado_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

}
?>
